cmake_minimum_required(VERSION 2.6)
project(cpm)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
if (MSVC)
    include(DeclareVisualStudioMacros)
    include(GroupVisualStudioFiles)
    
    DECLARE_VISUAL_STUDIO_MACROS()
else()
    message(FATAL_ERROR "TODO")
endif()

# 头文件目录设置 #####################################################################
include_directories(
    ${PROJECT_SOURCE_DIR}
    ${PROJECT_SOURCE_DIR}/Dependency/jsoncpp-0.10.6/include
)

link_directories(
)

add_subdirectory(Dependency)

set(cpm_SRC 
    src/main.cc
    src/helper.cc
)

add_executable(cpm ${cpm_SRC})
target_link_libraries(cpm jsoncpp_lib_static)